/**
 * @Author wwy 显示提示信息 require jquery.js require jquery.tips.js
 * 
 */
function Tips() {
}
Tips.error = {};
Tips.error.side = 3;
Tips.error.time = 3;
Tips.error.bg = "#AE81FF";
Tips.error.defaultTipMessage = "\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u683c\u5f0f";
Tips.showError = function(id, tipMessage, time, bg, side) {
	tipMessage = tipMessage || Tips.error.defaultTipMessage;
	time = time || Tips.error.time;
	bg = bg || Tips.error.bg;
	side = side || Tips.error.side;
	$("#" + id).tips({
		side : Tips.error.side,
		msg : tipMessage,
		bg : bg,
		time : time
	});
	$("#" + id).focus()
};

Tips.showError2 = function(element, tipMessage, time, bg, side) {
	tipMessage = tipMessage || Tips.error.defaultTipMessage;
	time = time || Tips.error.time;
	bg = bg || Tips.error.bg;
	side = side || Tips.error.side;
	$(element).tips({
		side : Tips.error.side,
		msg : tipMessage,
		bg : bg,
		time : time
	});
	$(element).focus()
};